#include<iostream>
#include<string>
#include<vector>


using std::cout;
using std::endl;
using std::string;
using std::vector;

int main(void)
{
    vector<char> vc={'H','E','L','L','O'};
    string svc;
    //最唐版,one by one
    for(auto& i: vc)
    {
        svc.push_back(i);
    }
    //string 迭代器插入
    string svc1(vc.begin(),vc.end());

    cout<<"vc: "<<vc.capacity()<<endl;
    /* vc.push_back('\0'); */
    string svc2=&vc[0];
    string svc3(&vc[0]);

    cout<<svc<<endl;
    cout<<"svc1: "<<svc1<<endl;
    cout<<"svc2: "<<svc2<<endl;
    cout<<"svc3: "<<svc3<<endl;
    if(vc[5]=='\0')
    {
    cout<<" etse"<<endl;
    }
}
